<script language="javascript" type="text/javascript">

function ddwccSubmitCallback(result)
{
	if(dmtFirstDealAjaxResponse(result))
		return;

	var cur_chart_idx = 'attr_' + result.attr_id + '_' + result.warn_type_id;
	cur_chart_idx += "<?cs var:config.warn_type_show ?>";
    dmtSetChartNewDetailInfo(result, cur_chart_idx);
}

$(document).ready(function(){
	$("#ddwcc_form_submit").submit(function(){
		validateCallback(this, ddwccSubmitCallback);
		$.pdialog.closeCurrent();
		return false;
	});
});

</script>

<style type="text/css">
#ddwcc_pageFormContent p { width:500px; }
#ddwcc_pageFormContent p label { width:50px; }
</style>

<div class="pageContent">
	<form method="get" action="<?cs var:config.cgipath?>mt_slog_warn" class="pageForm" id="ddwcc_form_submit">
		<div class="pageFormContent" id='ddwcc_pageFormContent'>
			<input type="hidden" name="ddwc_warn_config_id" value="<?cs var:config.warn_config_id ?>" />
			<input type="hidden" name="ddwc_warn_type_val" value="<?cs var:config.warn_type_id ?>" />
			<input type="hidden" name="ddwc_attr_id" value="<?cs var:config.warn_attr_id ?>" />
			<input type="hidden" name="ddwc_warn_type" value="<?cs var:config.warn_type ?>" />
			<input type="hidden" name="action" value="save_set_warn_chart" />

			<p>
				<label style='width:60px'>清除告警:</label><input type="checkbox" name="c_warn_clear_not_sel" id="c_warn_clear_not_sel" />
				<font class='note-text'>
					<label class='for' style="float:right;width:380px;" for="c_warn_clear_not_sel"> 
						- 清除以下未勾选的告警类型配置
					</label>
				</font>
			</p>

			<p> 
				<label>最大值：</label>
				<input type="text" size="16" class="digits" name="ddwc_warn_max" value="<?cs var:config.warn_max ?>" />
				<input type="checkbox" name="c_warn_max" id='c_warn_max' />
				<font class='note-text'>
					<label class='for' style="float:right;width:240px;" for="c_warn_max">
						- 设置最大值，并勾选后最大值告警配置生效
					</label>
				</font>
			</p>
			<p>
				<label>最小值：</label>
				<input type="text" size="16" name="ddwc_warn_min" value="<?cs var:config.warn_min ?>" />
				<input type="checkbox" name="c_warn_min" id="c_warn_min" />
				<font class='note-text'>
					<label class='for' style="float:right;width:240px;" for="c_warn_min">
						- 设置最小值，并勾选后最小值告警配置生效
					</label>
				</font>
			</p>
			<p>
				<label>波动值：</label>
				<input type="text" size="16" name="ddwc_warn_wave" value="<?cs var:config.warn_wave ?>" />
				<input type="checkbox" name="c_warn_wave"  id="c_warn_wave" />
				<font class='note-text'>
					<label class='for' style="float:right;width:240px;" for="c_warn_wave">
						- 设置波动值，并勾选后波动值告警配置生效
					</label>
				</font>
			</p>
		</div>

		<div class="formBar">
			<ul>
				<li><button type="submit" class="buttonActive">设置</button></li>
				<li><button type="button" class="buttonActive close">关闭</button></li>
			</ul>
		</div>
	</form>
</div>

